import { Injectable, PipeTransform } from '@nestjs/common'
import { convertKeysToSnakeCaseDeep } from '@/utils'

@Injectable()
export class SnakeCasePipe implements PipeTransform {
  transform(value: any) {
    // 使用 convertKeysToSnakeCaseDeep 转换键为下划线格式
    return convertKeysToSnakeCaseDeep(value)
  }
}
